﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DALScolarite
{
    public partial class scolarite_domaine
    {
        uvtmoyEntities ent;
        public List<scolarite_domaine> domaineue(string idue="")
        {
            ent = new uvtmoyEntities();
            
            if (idue != string.Empty)
            {
               /* return (from s in ent.scolarite_ensunites.Include("scolarite_domaine")
                        where s.idunite == idue

                        select ).ToList();*/
                return (from s in ent.scolarite_domaine
                        select s).ToList();
            }
            else
            {
              return (from s in ent.scolarite_domaine 
                         select s).ToList();
            }
            
        }

         
    }
}
